package com.kgc.collection.pojo;


import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class WriteoffDetail implements Serializable {

  private int id;
  private String mainCode;
  private int sourceType;
  private String sourceSheet;
  private int sourceSheetDetail;
  private BigDecimal settledAmount;
  private BigDecimal unsettledAmount;
  private String createBy;
  private Date createTime;
  private String updateBy;
  private Date updateTime;
  private int isDelete;
  private BigDecimal originAmount;


  public WriteoffDetail() {
  }

  public WriteoffDetail(int id, String mainCode, int sourceType, String sourceSheet, int sourceSheetDetail, BigDecimal settledAmount, BigDecimal unsettledAmount, String createBy, Date createTime, String updateBy, Date updateTime, int isDelete, BigDecimal originAmount) {
    this.id = id;
    this.mainCode = mainCode;
    this.sourceType = sourceType;
    this.sourceSheet = sourceSheet;
    this.sourceSheetDetail = sourceSheetDetail;
    this.settledAmount = settledAmount;
    this.unsettledAmount = unsettledAmount;
    this.createBy = createBy;
    this.createTime = createTime;
    this.updateBy = updateBy;
    this.updateTime = updateTime;
    this.isDelete = isDelete;
    this.originAmount = originAmount;
  }

  public BigDecimal getOriginAmount() {
    return originAmount;
  }

  public void setOriginAmount(BigDecimal originAmount) {
    this.originAmount = originAmount;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getMainCode() {
    return mainCode;
  }

  public void setMainCode(String mainCode) {
    this.mainCode = mainCode;
  }

  public int getSourceType() {
    return sourceType;
  }

  public void setSourceType(int sourceType) {
    this.sourceType = sourceType;
  }

  public String getSourceSheet() {
    return sourceSheet;
  }

  public void setSourceSheet(String sourceSheet) {
    this.sourceSheet = sourceSheet;
  }

  public int getSourceSheetDetail() {
    return sourceSheetDetail;
  }

  public void setSourceSheetDetail(int sourceSheetDetail) {
    this.sourceSheetDetail = sourceSheetDetail;
  }

  public BigDecimal getSettledAmount() {
    return settledAmount;
  }

  public void setSettledAmount(BigDecimal settledAmount) {
    this.settledAmount = settledAmount;
  }

  public BigDecimal getUnsettledAmount() {
    return unsettledAmount;
  }

  public void setUnsettledAmount(BigDecimal unsettledAmount) {
    this.unsettledAmount = unsettledAmount;
  }

  public String getCreateBy() {
    return createBy;
  }

  public void setCreateBy(String createBy) {
    this.createBy = createBy;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public String getUpdateBy() {
    return updateBy;
  }

  public void setUpdateBy(String updateBy) {
    this.updateBy = updateBy;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

  public int getIsDelete() {
    return isDelete;
  }

  public void setIsDelete(int isDelete) {
    this.isDelete = isDelete;
  }

  @Override
  public String toString() {
    return "WriteoffDetail{" +
            "id=" + id +
            ", mainCode='" + mainCode + '\'' +
            ", sourceType=" + sourceType +
            ", sourceSheet='" + sourceSheet + '\'' +
            ", sourceSheetDetail=" + sourceSheetDetail +
            ", settledAmount=" + settledAmount +
            ", unsettledAmount=" + unsettledAmount +
            ", createBy='" + createBy + '\'' +
            ", createTime=" + createTime +
            ", updateBy='" + updateBy + '\'' +
            ", updateTime=" + updateTime +
            ", isDelete=" + isDelete +
            '}';
  }
}
